package ch06;

public class Person {
    private String name ;
    private String words ;

    public Person() {
    }

    public Person(String name, String words) {
        this.name = name;
        this.words = words;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setWords(String words) {
        this.words = words;
    }

    public void  show(){
        System.out.println(name + " 说: " + words);
    }

    @Override
    public String toString() {
        return "name = " + name + " words = " + words ;
    }
}
